﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MyCode.Project.Infrastructure.Common;

namespace MyCode.Project.Domain.Config
{
    public static class SystemConfig
    {
        /// <summary>
        /// 数据库连接路径
        /// </summary>
        public static string ConnectionMasterStr = WebConfigUtils.GetConnectionStringsInfo("MasterConn");  
        /// <summary>
        /// Redis的地址
        /// </summary>
        public static string RedisAddress = WebConfigUtils.GetAppSettingsInfo("RedisAddress");

        /// <summary>
        /// Redis缓存前缀
        /// </summary>
        public static string CachePrefix = WebConfigUtils.GetAppSettingsInfo("CachePrefix");

        /// <summary>
        /// JWT的key
        /// </summary>
        public static string JwtKey = WebConfigUtils.GetAppSettingsInfo("JwtKey");

        /// <summary>
        /// 是否输出sql
        /// </summary>
        public static bool IfOutputSql = WebConfigUtils.GetAppSettingsInfo("OutputSql") == "1" ? true : false;

        /// <summary>
        /// 小程序的Appid
        /// </summary>
        public static string AppId = WebConfigUtils.GetAppSettingsInfo("Appid");

        /// <summary>
        /// 小程序的AppSecret
        /// </summary>
        public static string AppSecret = WebConfigUtils.GetAppSettingsInfo("AppSecret");


        /// <summary>
        /// 会员端小程序的AppId
        /// </summary>
        public static string MemberAppId = WebConfigUtils.GetAppSettingsInfo("MemberAppId");

        /// <summary>
        /// 会员端小程序的的AppSecret
        /// </summary>
        public static string MemberAppSecret = WebConfigUtils.GetAppSettingsInfo("MemberAppSecret");

        /// <summary>
        /// 支付Key
        /// </summary>
        public static string AppPayKey = WebConfigUtils.GetAppSettingsInfo("AppPayKey");

        /// <summary>
        /// 公众号的Appid
        /// </summary>
        public static string WeAppid = WebConfigUtils.GetAppSettingsInfo("WeAppid");

        ///// <summary>
        ///// 版本
        ///// </summary>
        //public static string Version = WebConfigUtils.GetAppSettingsInfo("Version");

        /// <summary>
        /// 公众号的WeAppSecret
        /// </summary>
        public static string WeAppSecret = WebConfigUtils.GetAppSettingsInfo("WeAppSecret");      


        /// <summary>
        /// 钉钉的通知URL
        /// </summary>
        public static string DingDingApiUrl = WebConfigUtils.GetAppSettingsInfo("DingDingApiUrl");

        /// <summary>
        /// 钉钉的通知内容前缀
        /// </summary>
        public static string DingDingTxt = WebConfigUtils.GetAppSettingsInfo("DingDingTxt");

        /// <summary>
        /// 微信服务器配置的token
        /// </summary>
        public static string WeToken = WebConfigUtils.GetAppSettingsInfo("WeToken");

        /// <summary>
        /// 微信Api接口地址
        /// </summary>
        public static string WeixinApiUrl = WebConfigUtils.GetAppSettingsInfo("WeixinApiUrl");

        /// <summary>
        /// 当前域名
        /// </summary>
        public static string Domain = WebConfigUtils.GetAppSettingsInfo("Domain");

        /// <summary>
        /// NCApiUrl
        /// </summary>
        public static string NCApiUrl = WebConfigUtils.GetAppSettingsInfo("NCApiUrl");

        /// <summary>
        /// NCApiToken
        /// </summary>
        public static string NCApiToken = WebConfigUtils.GetAppSettingsInfo("NCApiToken");

        /// <summary>
        /// 分裂式门票活动
        /// </summary>
        public static string Activity0 = WebConfigUtils.GetAppSettingsInfo("Activity0");

        /// <summary>
        /// 99女神卡活动
        /// </summary>
        public static string Activity2 = WebConfigUtils.GetAppSettingsInfo("Activity2");

        /// <summary>
        /// 小程序码存放地址
        /// </summary>
        public static string FilesPatch = WebConfigUtils.GetAppSettingsInfo("FilesPatch");

        /// <summary>
        /// 99女神卡卡套ID
        /// </summary>
        public static string NymphCardId = WebConfigUtils.GetAppSettingsInfo("NymphCardId");

        /// <summary>
        /// 小胖美妆的小程序的Appid
        /// </summary>
        public static string XiaoPangAppid = WebConfigUtils.GetAppSettingsInfo("XiaoPangAppid");

        /// <summary>
        /// 小胖美妆的小程序的AppSecret
        /// </summary>
        public static string XiaoPangAppsecret = WebConfigUtils.GetAppSettingsInfo("XiaoPangAppsecret");

        /// <summary>
        /// 版本号
        /// </summary>
        public static string ApiVersion = WebConfigUtils.GetAppSettingsInfo("ApiVersion");


        /// <summary>
        /// 七牛空间参数 AccessKey
        /// </summary>
        public static string QiniuAccessKey = WebConfigUtils.GetAppSettingsInfo("QiniuAccessKey");

        /// <summary>
        /// 七牛空间参数 SecretKey
        /// </summary>
        public static string QiniuSecretKey = WebConfigUtils.GetAppSettingsInfo("QiniuSecretKey");

        /// <summary>
        /// 七牛空间参数 Bucket
        /// </summary>
        public static string QiniuBucket = WebConfigUtils.GetAppSettingsInfo("QiniuBucket");

        /// <summary>
        /// 七牛空间参数(文件域名) DomainName
        /// </summary>
        public static string QiniuDomainName = WebConfigUtils.GetAppSettingsInfo("QiniuDomainName");

        /// <summary>
        /// mysql数据库的API接口地址
        /// </summary>
        public static string LxmReportApiUrl = WebConfigUtils.GetAppSettingsInfo("LxmReportApiUrl");

        /// <summary>
        /// 公众号消息的API地址
        /// </summary>
        public static string PublicApiUrl = WebConfigUtils.GetAppSettingsInfo("PublicApiUrl");

        /// <summary>
        ///让哥的抖音API地址
        /// </summary>
        public static string DouYinApiUrl = WebConfigUtils.GetAppSettingsInfo("DouYinApiUrl");


        /// <summary>
        /// 让哥的抖音API Token
        /// </summary>
        public static string DouYinApiToken = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJsb2dpbiI6IntcImxvZ2luXCI6XCJhZG1pblwiLFwibmFtZVwiOlwi57O757ufXCIsXCJ1c2VySWRcIjpcIlwifSIsImlzcyI6InN5c3RlbSIsImF1ZCI6IkFueSIsImV4cCI6MzI3MjE1MDc1NiwibmJmIjoxNzE2OTUwNzU2fQ.xPLulTwzyh4ZuYfed_xfFDwYO35WatZcy98rcOwparQ";

        /// <summary>
        /// 后台系统的API地址
        /// </summary>
        public static string LxmAdminApiUrl = WebConfigUtils.GetAppSettingsInfo("LxmAdminApiUrl");
    }


}
